﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Drawing;
using System.IO;

namespace blackhouse.Web {
	public abstract class ImageWatermark {

		#region Properties

		public float PercentWidth { get; set; }
		public float PercentHeight { get; set; }
		public float PercentPositionX { get; set; }
		public float PercentPositionY { get; set; }

		#endregion

		#region Constructors

		public ImageWatermark(float percentWidth, float percentHeight, float percentPositionX, float percentPositionY) {
			this.PercentWidth = percentWidth;
			this.PercentHeight = percentHeight;
			this.PercentPositionX = percentPositionX;
			this.PercentPositionY = percentPositionY;
		}

		#endregion

		#region Methods

		public abstract Stream GetImageStream();

		public override string ToString() {
			return string.Format("{0}-{1}-{2}-{3}",  PercentWidth, PercentHeight, PercentPositionX, PercentPositionY);
		}

		#endregion

	}
}